import Vue from "vue"
import VueRouter from "vue-router"
import HelloWorld from '../components/HelloWorld.vue'
import about from '../components/about.vue'
Vue.use(VueRouter)

import news from '../components/news.vue'
import message from '../components/message.vue'
const router = new VueRouter({
    routes: [{
        path: "/home",
        component: HelloWorld,
        children:[{
            path:"news",
            component:news
        },{
            path:"message",
            component:message
        }]
    },
    {
        path:"/about",
        component:about
    }
    ]
})

export default router;